// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

use tauri::Manager;
use window_shadows::set_shadow;

mod conn;
mod error;
mod utils;

fn main() {
    tauri::Builder::default()
        .invoke_handler(tauri::generate_handler![
            conn::avaliable_port_names,
            conn::conn_open,
            conn::conn_close,
            conn::conn_query,
            conn::conn_request,
            conn::conn_ping,
            conn::conn_ota,
            conn::conn_is_open,
            utils::md5_sum,
        ])
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}
